package com.mark.mall.web.platform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 供应商表
 * </p>
 *
 * @author admin
 * @since 2021-02-28
 */
@TableName(value = "t_provider")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TProvider对象", description = "供应商表")
public class Provider implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "供应商编码")
    @TableField("c_proCode")
    private String procode;

    @ApiModelProperty(value = "供应商名称")
    @TableField("c_proName")
    private String proname;

    @ApiModelProperty(value = "供应商详细描述")
    @TableField("c_proDesc")
    private String prodesc;

    @ApiModelProperty(value = "供应商联系人")
    @TableField("c_proContact")
    private String procontact;

    @ApiModelProperty(value = "联系电话")
    @TableField("c_proPhone")
    private String prophone;

    @ApiModelProperty(value = "地址")
    @TableField("c_proAddress")
    private String proaddress;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "c_createtime",fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    @ApiModelProperty(value = "供应商状态")
    @TableField(value = "c_state", select = false, fill = FieldFill.INSERT)
    private String state;
}
